package com.sunxu.springboot.demo.service.impl;

import com.sunxu.springboot.demo.dao.UserMapper;
import com.sunxu.springboot.demo.pojo.User;
import com.sunxu.springboot.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 孙许
 * @date 2018-08-13
 * @description
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper mapper;

    @Override
    public User getUser(Integer id) {
        return mapper.selectByPrimaryKey(id);
    }
}
